<?php
include_once("db.inc");
$Username = $_REQUEST["Username"];
$Name = $_REQUEST["Name"];
$NhomNganh = $_REQUEST["NhomNganh"];
$Phone = $_REQUEST["Phone"];
$Fax = $_REQUEST["Fax"];
$Address = $_REQUEST["Address"];
$sql = "update thanhvien set tendoanhnghiep=\"$Name\",nhomnganh = $NhomNganh,sodienthoai=\"$Phone\",sofax=\"$Fax\",diachi=\"$Address\" where taikhoan = '$Username'"; 
mysql_query($sql);
$result = mysql_affected_rows();
$return = "";
if($result > 0)
	$return = $return."1";
echo $return;
?>